import request from '@/utils/request'

// 查询会员权限列表
export function listHlmember(query) {
  return request({
    url: '/hotel/hlmember/list',
    method: 'get',
    params: query
  })
}

// 查询会员权限详细
export function getHlmember(id) {
  return request({
    url: '/hotel/hlmember/' + id,
    method: 'get'
  })
}

// 新增会员权限
export function addHlmember(data) {
  return request({
    url: '/hotel/hlmember',
    method: 'post',
    data: data
  })
}

// 修改会员权限
export function updateHlmember(data) {
  return request({
    url: '/hotel/hlmember',
    method: 'put',
    data: data
  })
}

// 删除会员权限
export function delHlmember(id) {
  return request({
    url: '/hotel/hlmember/' + id,
    method: 'delete'
  })
}
